import permisson from './permission';
permisson.name = 'has-permisson';
const install = function(Vue) {
  Vue.directive(permisson.name, permisson);
};

if (window.Vue) {
  window[permisson.name] = permisson;
  Vue.use(install); // eslint-disable-line
}

permisson.install = install;
export default permisson;
